\doxysection{C\+:/\+Users/\+ASUS/\+Desktop/dm-\/ctrl\+H7-\/balance-\/9025test/\+Core/\+Src/sysmem.c File Reference}
\hypertarget{sysmem_8c}{}\label{sysmem_8c}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Core/Src/sysmem.c@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Core/Src/sysmem.c}}


System Memory calls file.  


{\ttfamily \#include $<$errno.\+h$>$}\newline
{\ttfamily \#include $<$stdint.\+h$>$}\newline
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{sysmem_8c_a68125648bcce70b6bb3aa0be50e99700}{\+\_\+sbrk}} (ptrdiff\+\_\+t incr)
\begin{DoxyCompactList}\small\item\em \doxylink{sysmem_8c_a68125648bcce70b6bb3aa0be50e99700}{\+\_\+sbrk()} allocates memory to the newlib heap and is used by malloc and others from the C library \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
System Memory calls file. 

\begin{DoxyAuthor}{Author}
Generated by STM32\+Cube\+MX \begin{DoxyVerb}       For more information about which C functions
       need which of these lowlevel functions
       please consult the newlib libc manual
\end{DoxyVerb}

\end{DoxyAuthor}
\begin{DoxyAttention}{Attention}

\end{DoxyAttention}
Copyright (c) 2024 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-\/\+IS. 

\label{doc-func-members}
\Hypertarget{sysmem_8c_doc-func-members}
\doxysubsection{Function Documentation}
\Hypertarget{sysmem_8c_a68125648bcce70b6bb3aa0be50e99700}\index{sysmem.c@{sysmem.c}!\_sbrk@{\_sbrk}}
\index{\_sbrk@{\_sbrk}!sysmem.c@{sysmem.c}}
\doxysubsubsection{\texorpdfstring{\_sbrk()}{\_sbrk()}}
{\footnotesize\ttfamily \label{sysmem_8c_a68125648bcce70b6bb3aa0be50e99700} 
void \texorpdfstring{$\ast$}{*} \+\_\+sbrk (\begin{DoxyParamCaption}\item[{ptrdiff\+\_\+t}]{incr}{}\end{DoxyParamCaption})}



\doxylink{sysmem_8c_a68125648bcce70b6bb3aa0be50e99700}{\+\_\+sbrk()} allocates memory to the newlib heap and is used by malloc and others from the C library 

\begin{DoxyVerb}* ############################################################################
* #  .data  #  .bss  #       newlib heap       #          MSP stack          #
* #         #        #                         # Reserved by _Min_Stack_Size #
* ############################################################################
* ^-- RAM start      ^-- _end                             _estack, RAM end --^
* \end{DoxyVerb}


This implementation starts allocating at the \textquotesingle{}\+\_\+end\textquotesingle{} linker symbol The \textquotesingle{}\+\_\+\+Min\+\_\+\+Stack\+\_\+\+Size\textquotesingle{} linker symbol reserves a memory for the MSP stack The implementation considers \textquotesingle{}\+\_\+estack\textquotesingle{} linker symbol to be RAM end NOTE\+: If the MSP stack, at any point during execution, grows larger than the reserved size, please increase the \textquotesingle{}\+\_\+\+Min\+\_\+\+Stack\+\_\+\+Size\textquotesingle{}.


\begin{DoxyParams}{Parameters}
{\em incr} & Memory size \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Pointer to allocated memory 
\end{DoxyReturn}
